package edu.xmut.yuepaibackend.service;

import edu.xmut.yuepaibackend.model.domain.Blog;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.xmut.yuepaibackend.model.form.BlogPublishForm;
import edu.xmut.yuepaibackend.model.vo.BlogDetailVo;
import edu.xmut.yuepaibackend.model.vo.PageVO;
import jakarta.servlet.http.HttpServletRequest;

/**
 * @author tanjiao
 * @description 针对表【blog(帖子)】的数据库操作Service
 * @createDate 2024-09-06 14:52:19
 */
public interface BlogService extends IService<Blog> {

    PageVO recommend(Integer pageNum, Integer pageSize);


    BlogDetailVo getBlogDetail(Long id);

    Long publish(BlogPublishForm blogPublishForm, HttpServletRequest request);

}
